home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / cenvid.zip / ASCII.BAT < prev    next >
DOS Batch File  |  1993-04-25  |  436b  |  20 lines

  1. @echo off
  2. REM Ascii.bat - Display the ASCII character set
  3. cenvi %0.bat
  4. GOTO CENVI_EXIT
  5.  
  6. #define  ROW_COUNT      20
  7. #define  COL_COUNT      13
  8.  
  9. Unprintables = "\a\b\t\r\n\032\033"
  10. for ( row = 0; row < ROW_COUNT; row++ ) {
  11.    for ( col = 0; col < COL_COUNT; col++ ) {
  12.       c = ROW_COUNT*col + row
  13.       if c < 256
  14.          printf("%c-%-3d ",(NULL==strchr(Unprintables,c))?c:'.',c)
  15.    }
  16.    printf("\n")
  17. }
  18.  
  19. :CENVI_EXIT
  20.